IOMMU: log appropriate SBDF
authorJan Beulich <jbeulich@suse.com>
Wed, 13 Apr 2022 10:36:03 +0000 (12:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Apr 2022 10:36:03 +0000 (12:36 +0200)
commite509b5f932608e74deac96048b28a5e9b210c647
treee95d17a8fd9ff91a7246a7203b8eff8345c53b77
parente687e72174b73bb1d23ff79f9ef580201243d35f
IOMMU: log appropriate SBDF

To handle phantom devices, several functions are passed separate "devfn"
arguments besides a PCI device. In such cases we want to log the phantom
device's coordinates instead of the main one's. (Note that not all of
the instances being changed are fallout from the referenced commit.)

Fixes: 1ee1441835f4 ("print: introduce a format specifier for pci_sbdf_t")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/amd/iommu_cmd.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/pci.c